import ECharts from 'vue-echarts' // 在 webpack 环境下指向 components/ECharts.vue
import theme from '@/utils/echarts-theme.json'
export default {
  components: { ECharts },
  props: {
    options: Object,
    theme: [String, Object]
  },
  render(createElement) {
    return createElement(
      'e-charts', // 标签名称
      {
        props: {
          theme: theme,
          options: this.options
        },
        ref: 'chart'
      }
    )
  }
}
